package com.young.springdemo.config.red;

/**
 * @program: springdemo
 * @description 操作类型结果
 * @author: Young
 * @create: 2020-06-01 09:13
 **/
public enum OperateResult {

    OPERATE_RESULT_SUCCESS("200", "成功", "完成操作"),
    OPERATE_RESULT_FAILURE("500", "失败", "操作异常"),
    //自定义异常
    OPERATE_RESULT_RED("600", "红名单人员", "无法进行操作");


    private String code;
    private String result;
    private String desc;

    OperateResult() {
    }

    OperateResult(String code, String result, String desc) {
        this.code = code;
        this.result = result;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
